#include "case.h"
#include <QBoxLayout>
Case::Case() :
    QWidget(NULL)
{
    image.setParent(this);
    _position = QPoint(-1000,-1000);
    _taille = size();
}

void Case::move(const QPoint &point)
{

    _position = point;
   QWidget::move(_position);
}

void Case::resize(const QSize &s)
{
    _taille = s;
    QWidget::resize(s);
    if(_position!=QPoint(-1000,-1000))
        move(_position);
}
